/*
 *http://www.apache.org/licenses/LICENSE-2.0
 *Copyright (c) 2021 fullset
 *@ClassName XmSelect
 *@date 2021/6/27 14:18
 *@Description xm-select下拉框封装
 */
package com.fs.orm.layui;

import java.io.Serializable;
import java.util.List;

public class XmSelect implements Serializable {

    private static final long serialVersionUID = 1L;

    //选中值, 当前多选唯一
    private String value;

    //显示名称
    private String name;

    //显示
    private String showname;

    //是否禁用
    private Boolean disabled;

    //是否选中
    private Boolean selected;

    private List<XmSelect> children;

    public XmSelect(){

    }

    public XmSelect(String name, String value){
        this.name = name;
        this.value = value;
    }

    public XmSelect(String name, String value, String showname){
        this.name = name;
        this.value = value;
        this.showname = showname;
    }

    public XmSelect(String name, String value, Boolean disabled){
        this.name = name;
        this.value = value;
        this.disabled = disabled;
    }

    public XmSelect(String name, String value, Boolean disabled, Boolean selected){
        this.name = name;
        this.value = value;
        this.disabled = disabled;
        this.selected = selected;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getShowname() {
        return showname;
    }

    public void setShowname(String showname) {
        this.showname = showname;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public List<XmSelect> getChildren() {
        return children;
    }

    public void setChildren(List<XmSelect> children) {
        this.children = children;
    }
}
